/**
 * 
 */
package br.embedded.socialapp.business;

import org.opensocial.Client;


/**
 * @author daniel
 *
 */
public class OpenSocialClientFactory
{
	private OpenSocialClientFactory()
	{
	}
	
	public static Client getInstance(String strProvider)
	{
		if (strProvider.equalsIgnoreCase("MYSPACE"))
		{
			return MySpaceClientFactory.getInstance().getClient();
		}
		else if (strProvider.equalsIgnoreCase("ORKUT_SANDBOX"))
		{
			return OrkutClientFactory.getInstance().getClient();
		}
		return null;
	}
}
